import {CloseModal} from '../graphql'

export default ({name, greeting}) => (
  <div>
    {name}, {greeting}
    <CloseModal render={mutate => (
      <button onClick={mutate}>Close</button>
    )} />
  </div>

)